#include <fstream>

int main()
{
   std::ifstream input("in.txt");
   std::ofstream output("out.txt");

   int step_x[] = {1, 0, -1, 0,};
   int step_y[] = {0, 1, 0, -1};
   int N;
   input >> N;
   int len = 0;
   int x = 0;
   int y = 0;
   int k = 0;
   for (int i = 0; i < N; i++)
   {
	   output << x << ' ' << y << '\n';
	   if (i % 2 == 0) 
	      len++;
	   x = x + len * step_x[k];
	   y = y + len * step_y[k];
	   k = (k + 1) % 4;
   }

   return 0;
}